<template>
    <div class="params">
        <h2>vue路由中的参数</h2>
        <a-button @click="handleRouter">去子页面</a-button>
    </div>
</template>
<script setup lang="ts">
import { useRoute, useRouter } from 'vue-router'

const route = useRoute()
const router = useRouter()
console.log(route)
const handleRouter = () => {
    router.push('/vue/params/child/123?name=zhangsan')
}
</script>
<style lang="scss" scoped>
.params {
}
</style>
